home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / GRAPHICS / VOXRAY.ZIP / ASSERT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-10-18  |  316 b   |  18 lines

  1. #ifdef DEBUG
  2. #include <iostream.h>
  3. #include <conio.h>
  4. #include <dos.h>
  5. #include "screen.h"
  6. #include "types.h"
  7. extern int raw_key;
  8. #define Assert(X,Y) \
  9.   if (X)  {         \
  10.      setgmode(0x3); \
  11.      cout << Y;     \
  12.      delay(1000);   \
  13.      raw_key=1;     \
  14.   }
  15. #else
  16. #define Assert(X,Y)
  17. #endif
  18.